<div class="">

  <%= error_messages_for 'user' %>

  <fieldset>
    <legend>Entrer les informations utilisateur</legend>

    <% form_for :user do |form| %>
      <p>
        <label for="user_name">Nom:</label>
        <%= form.text_field :name, :size => 40 %>
      </p>

      <p>
        <label for="user_password">Mot de passe:</label>
        <%= form.password_field :password, :size => 40 %>
      </p>

      <p>
        <label for="user_password_confirmation">Confirmation:</label>
        <%= form.password_field :password_confirmation, :size => 40 %>
      </p>

      <%= submit_tag "Ajouter un utilisateur", :class => "submit" %>
    
    <% end %>  
  </fieldset>
</div>